//
//  KUtilsNavigationViewController.m
//  WKWebVIewDemo
//
//  Created by Yonger on 2018/7/19.
//  Copyright © 2018年 WKWebView. All rights reserved.
//

#import "KUtilsNavigationViewController.h"

@interface KUtilsNavigationViewController ()

@end

@implementation KUtilsNavigationViewController

- (id)initWithRootViewController:(UIViewController *)rootViewController{
    self = [super initWithRootViewController:rootViewController];
    if (self) {
        self.interfaceMask = UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBarHidden = YES;
}

- (BOOL)shouldAutorotate{
    return YES;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
    return self.interfaceMask;
}

@end
